import { request } from '@/utils';
import { getRestBaseUrl } from '@/config';

// 查询
export const loadListStore = (queryForm, page = { pageSize: 10, pageNum: 1 }) =>
  request({
    url: `${getRestBaseUrl()}/iop/channelStoreService/list`,
    method: 'POST',
    data: { form: queryForm, page },
    timeout: 3 * 60 * 1000,
  });

// 查询所有蜂窝
export const loadListCellular = () =>
  request({
    url: `${getRestBaseUrl()}/iop/cellularService/listAll`,
    method: 'POST',
    data: null,
    timeout: 3 * 60 * 1000,
  });

// 查询所有片区
export const listArea = () =>
  request({
    url: `${getRestBaseUrl()}/iop/storeService/listArea`,
    method: 'POST',
    data: null,
    timeout: 3 * 60 * 1000,
  });

// 删除表格行记录 -- 益丰门店
export const deleteYfStoreApi = channelCode =>
  request({
    url: `${getRestBaseUrl()}/iop/channelStoreService/delete`,
    method: 'POST',
    data: { channelCode },
    timeout: 3 * 60 * 1000,
  });

//
